package com.itsccn.quartzdemo.task;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.annotation.PostConstruct;

import org.apache.log4j.Logger;

public class TaskDemo {
	@PostConstruct
	public void init(){
		SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String datestr = sf.format(new Date());
		Logger log = Logger.getLogger(getClass());
		log.info("**************init*************"+datestr);
//		System.out.println("**************init*************"+datestr);
	}
}
